<?php
//we include the needed files
include ("configs/config_log.php");

$tpl = new XTemplate("./template/tpl_admin_log.html");
//if logout=ON -> log out :)


if ( $logout == "ON" ) logout_admin();

//if submitted, we check the password
if ( $clicked == 1 ) {
	login_admin($password);
	
}

//show the default page
$tpl->parse("main.content.login");
$tpl->parse("main.content");


//show menu_not_logged
$tpl->parse("main.menu_not_logged");


//we set the title for the page
$tpl->assign("title","Please login first.");

$tpl->parse("main");
$tpl->out("main");

?>
